package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.RscAdjustCont;
import com.fdb.efp.nls.service.vo.RscAdjustContVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>DAO interface:风险分类调整合同表				<p>
 * @author chenqm1
 * @date 2018-05-07
 */
public interface RscAdjustContDao {
	
	public int insertRscAdjustCont(@Param("rscAdjustContVO") List<RscAdjustContVO> rscAdjustCont);
	
	public int deleteByPk(RscAdjustCont rscAdjustCont);
	
	public int deleteByNo(String taskNo);
	
	public int updateByPk(RscAdjustCont rscAdjustCont);
	
	public int updateByTaskNo(RscAdjustCont rscAdjustCont);
	
	public RscAdjustCont queryByPk(RscAdjustCont rscAdjustCont);
	
	public List<RscAdjustCont> queryAllOwnerByPage(RscAdjustContVO rscAdjustCont);
	
	public List<RscAdjustCont> queryAllCurrOrgByPage(RscAdjustContVO rscAdjustCont);
	
	public List<RscAdjustCont> queryAllCurrDownOrgByPage(RscAdjustContVO rscAdjustCont);

	public List<RscAdjustCont> queryAllOwnerByPageCusId(RscAdjustContVO rscAdjustContVo);

	public int rscAdjustContCusHandOver(@Param("fromUser") String fromUser, @Param("toUser") String toUser, @Param("fromBrId") String fromBrId, @Param("toBrId") String toBrId, @Param("cusIds") List<String> cusIds);
	
	//判断该合同号是否处于已通过
	public List<String> queryContNo();
}
